{extend name="layout/main-block" /}

<!-- main content start -->
{block name="content"}
<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <ol class="breadcrumb">
                <li class="h4"><a href="">首页</a></li>
                <li class="h4">账号管理</li>
                <li class="h4">修改账号</li>
            </ol>
        </div>
        <div class="row content-main">
            <div class="col-sm-4">
                <form class="form-horizontal" action="{:url('account_update', ['id'=>$record->account_id])}" method="post">
                    <div class="form-group">
                        <label for="inputUsername" class="col-sm-3 control-label">账号</label>
                        <div class="col-sm-9">
                            <input type="text" name="username" class="form-control" id="inputUsername" value="{$record->username}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputMoble" class="col-sm-3 control-label">手机</label>
                        <div class="col-sm-9">
                            <input type="text" name="mobile" class="form-control" id="inputMoble" value="{$record->mobile}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword" class="col-sm-3 control-label">密码</label>
                        <div class="col-sm-9">
                            <input type="password" name="password" class="form-control" id="inputPassword" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword2" class="col-sm-3 control-label">确认密码</label>
                        <div class="col-sm-9">
                            <input type="password" name="password_confirm" class="form-control" id="inputPassword2" value="">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputCreateTime" class="col-sm-3 control-label">创建时间</label>
                        <div class="col-sm-9">
                            <input type="email" name="create_time" class="form-control" id="inputCreateTime" disabled="disabled" placeholder="{$record->create_time}">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-9">
                            <button type="submit" class="btn btn-primary">修 改</button>
                            <a href="{:url('account')}" role='button' class="btn btn-info">返回列表</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </section>
</section>
{/block}